#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.UI;

[CustomEditor(typeof(UGUILongButton), true), CanEditMultipleObjects]
public class UGUILongButtonEditor : ButtonEditor
{
    SerializedProperty m_DelayTimeProperty;
    SerializedProperty m_IntervalProperty;
    SerializedProperty m_UpDelayTimeProperty;
    SerializedProperty m_UpIntervalProperty;

    protected override void OnEnable()
    {
        base.OnEnable();

        m_DelayTimeProperty = serializedObject.FindProperty("DelayTime");
        m_IntervalProperty = serializedObject.FindProperty("Interval");
        m_UpDelayTimeProperty = serializedObject.FindProperty("UpDelayTime");
        m_UpIntervalProperty = serializedObject.FindProperty("UpInterval");
    }

    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        EditorGUILayout.PropertyField(m_DelayTimeProperty);
        EditorGUILayout.PropertyField(m_IntervalProperty);
        EditorGUILayout.PropertyField(m_UpDelayTimeProperty);
        EditorGUILayout.PropertyField(m_UpIntervalProperty);

        serializedObject.ApplyModifiedProperties();
    }
}

#endif